/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meluk.billboard.beans.controller;

import java.util.Locale;

import org.hibernate.SessionFactory;
import org.meluk.billboard.jpa.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.LocalSessionFactoryBean;
import org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author AMelnyk
 *
 */
@Controller
@RequestMapping("/")
public class LoginController {

    @RequestMapping("login")
    public String login() {
        System.out.println("from login");
        return "login";
    }

    @RequestMapping("index")
    public String index() {
        System.out.println("from index");
        return "index";
    }
}
